﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace MvcDeviceManager.Models
{
    public class User
    {
        [Display(Name = "用户名")]
        [Required(ErrorMessage = "请输入用户名！")]
        public string UserName { set; get; }
        [Display(Name = "密码")]
        [DataType(DataType.Password)]
        [Required(ErrorMessage = "请输入密码！")]
        public string Password { set; get; }
        [Display(Name = "确认密码")]
        [DataType(DataType.Password)]
        [Compare("Password", ErrorMessage = "对不起，确认密码与密码不同，请重新输入！.")]
        public string RePassword { set; get; }
    }
}